.class Lcom/waiqin365/lightwork/tracker/model/ad;
.super Landroid/widget/Filter;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightwork/tracker/model/ac;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightwork/tracker/model/ac;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightwork/tracker/model/ad;->a:Lcom/waiqin365/lightwork/tracker/model/ac;

    invoke-direct {p0}, Landroid/widget/Filter;-><init>()V

    return-void
.end method


# virtual methods
.method protected performFiltering(Ljava/lang/CharSequence;)Landroid/widget/Filter$FilterResults;
    .locals 7

    const/4 v6, 0x1

    const/4 v0, 0x0

    iget-object v1, p0, Lcom/waiqin365/lightwork/tracker/model/ad;->a:Lcom/waiqin365/lightwork/tracker/model/ac;

    invoke-static {v1}, Lcom/waiqin365/lightwork/tracker/model/ac;->b(Lcom/waiqin365/lightwork/tracker/model/ac;)Ljava/util/ArrayList;

    move-result-object v1

    if-nez v1, :cond_0

    iget-object v1, p0, Lcom/waiqin365/lightwork/tracker/model/ad;->a:Lcom/waiqin365/lightwork/tracker/model/ac;

    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    invoke-static {v1, v2}, Lcom/waiqin365/lightwork/tracker/model/ac;->a(Lcom/waiqin365/lightwork/tracker/model/ac;Ljava/util/ArrayList;)Ljava/util/ArrayList;

    :cond_0
    iget-object v1, p0, Lcom/waiqin365/lightwork/tracker/model/ad;->a:Lcom/waiqin365/lightwork/tracker/model/ac;

    invoke-static {v1}, Lcom/waiqin365/lightwork/tracker/model/ac;->b(Lcom/waiqin365/lightwork/tracker/model/ac;)Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v1}, Ljava/util/ArrayList;->clear()V

    new-instance v3, Landroid/widget/Filter$FilterResults;

    invoke-direct {v3}, Landroid/widget/Filter$FilterResults;-><init>()V

    if-eqz p1, :cond_1

    invoke-interface {p1}, Ljava/lang/CharSequence;->length()I

    move-result v1

    if-nez v1, :cond_3

    :cond_1
    move v1, v0

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/model/ad;->a:Lcom/waiqin365/lightwork/tracker/model/ac;

    invoke-static {v0}, Lcom/waiqin365/lightwork/tracker/model/ac;->c(Lcom/waiqin365/lightwork/tracker/model/ac;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-ge v1, v0, :cond_2

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/model/ad;->a:Lcom/waiqin365/lightwork/tracker/model/ac;

    invoke-static {v0}, Lcom/waiqin365/lightwork/tracker/model/ac;->c(Lcom/waiqin365/lightwork/tracker/model/ac;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightwork/tracker/model/t;

    iget-object v2, p0, Lcom/waiqin365/lightwork/tracker/model/ad;->a:Lcom/waiqin365/lightwork/tracker/model/ac;

    invoke-static {v2}, Lcom/waiqin365/lightwork/tracker/model/ac;->b(Lcom/waiqin365/lightwork/tracker/model/ac;)Ljava/util/ArrayList;

    move-result-object v2

    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0

    :cond_2
    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/model/ad;->a:Lcom/waiqin365/lightwork/tracker/model/ac;

    invoke-static {v0}, Lcom/waiqin365/lightwork/tracker/model/ac;->b(Lcom/waiqin365/lightwork/tracker/model/ac;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    iput v0, v3, Landroid/widget/Filter$FilterResults;->count:I

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/model/ad;->a:Lcom/waiqin365/lightwork/tracker/model/ac;

    invoke-static {v0}, Lcom/waiqin365/lightwork/tracker/model/ac;->b(Lcom/waiqin365/lightwork/tracker/model/ac;)Ljava/util/ArrayList;

    move-result-object v0

    iput-object v0, v3, Landroid/widget/Filter$FilterResults;->values:Ljava/lang/Object;

    move-object v0, v3

    :goto_1
    return-object v0

    :cond_3
    move v1, v0

    :goto_2
    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/model/ad;->a:Lcom/waiqin365/lightwork/tracker/model/ac;

    invoke-static {v0}, Lcom/waiqin365/lightwork/tracker/model/ac;->c(Lcom/waiqin365/lightwork/tracker/model/ac;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-ge v1, v0, :cond_7

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/model/ad;->a:Lcom/waiqin365/lightwork/tracker/model/ac;

    invoke-static {v0}, Lcom/waiqin365/lightwork/tracker/model/ac;->c(Lcom/waiqin365/lightwork/tracker/model/ac;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightwork/tracker/model/t;

    const-string/jumbo v2, ""

    iget-object v4, v0, Lcom/waiqin365/lightwork/tracker/model/t;->c:Ljava/lang/String;

    const-string/jumbo v5, " "

    invoke-virtual {v4, v5}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v4

    array-length v4, v4

    if-le v4, v6, :cond_4

    iget-object v2, v0, Lcom/waiqin365/lightwork/tracker/model/t;->c:Ljava/lang/String;

    const-string/jumbo v4, " "

    invoke-virtual {v2, v4}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v2

    aget-object v2, v2, v6

    :cond_4
    iget-object v4, v0, Lcom/waiqin365/lightwork/tracker/model/t;->b:Ljava/lang/String;

    invoke-virtual {v4, p1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v4

    if-nez v4, :cond_5

    iget-object v4, v0, Lcom/waiqin365/lightwork/tracker/model/t;->d:Ljava/lang/String;

    invoke-virtual {v4, p1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v4

    if-nez v4, :cond_5

    iget-object v4, v0, Lcom/waiqin365/lightwork/tracker/model/t;->c:Ljava/lang/String;

    invoke-interface {p1}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v4

    if-nez v4, :cond_5

    invoke-interface {p1}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v4}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_5

    iget-object v2, v0, Lcom/waiqin365/lightwork/tracker/model/t;->f:Ljava/lang/String;

    invoke-virtual {v2, p1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v2

    if-eqz v2, :cond_6

    :cond_5
    iget-object v2, p0, Lcom/waiqin365/lightwork/tracker/model/ad;->a:Lcom/waiqin365/lightwork/tracker/model/ac;

    invoke-static {v2}, Lcom/waiqin365/lightwork/tracker/model/ac;->b(Lcom/waiqin365/lightwork/tracker/model/ac;)Ljava/util/ArrayList;

    move-result-object v2

    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    :cond_6
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_2

    :cond_7
    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/model/ad;->a:Lcom/waiqin365/lightwork/tracker/model/ac;

    invoke-static {v0}, Lcom/waiqin365/lightwork/tracker/model/ac;->b(Lcom/waiqin365/lightwork/tracker/model/ac;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    iput v0, v3, Landroid/widget/Filter$FilterResults;->count:I

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/model/ad;->a:Lcom/waiqin365/lightwork/tracker/model/ac;

    invoke-static {v0}, Lcom/waiqin365/lightwork/tracker/model/ac;->b(Lcom/waiqin365/lightwork/tracker/model/ac;)Ljava/util/ArrayList;

    move-result-object v0

    iput-object v0, v3, Landroid/widget/Filter$FilterResults;->values:Ljava/lang/Object;

    move-object v0, v3

    goto/16 :goto_1
.end method

.method protected publishResults(Ljava/lang/CharSequence;Landroid/widget/Filter$FilterResults;)V
    .locals 3

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/model/ad;->a:Lcom/waiqin365/lightwork/tracker/model/ac;

    invoke-static {v0}, Lcom/waiqin365/lightwork/tracker/model/ac;->a(Lcom/waiqin365/lightwork/tracker/model/ac;)Lcom/waiqin365/lightwork/tracker/model/ae;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v0, p2, Landroid/widget/Filter$FilterResults;->values:Ljava/lang/Object;

    check-cast v0, Ljava/util/ArrayList;

    iget-object v1, p0, Lcom/waiqin365/lightwork/tracker/model/ad;->a:Lcom/waiqin365/lightwork/tracker/model/ac;

    invoke-static {v1, v0}, Lcom/waiqin365/lightwork/tracker/model/ac;->a(Lcom/waiqin365/lightwork/tracker/model/ac;Ljava/util/ArrayList;)Ljava/util/ArrayList;

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/model/ad;->a:Lcom/waiqin365/lightwork/tracker/model/ac;

    invoke-static {v0}, Lcom/waiqin365/lightwork/tracker/model/ac;->a(Lcom/waiqin365/lightwork/tracker/model/ac;)Lcom/waiqin365/lightwork/tracker/model/ae;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightwork/tracker/model/ad;->a:Lcom/waiqin365/lightwork/tracker/model/ac;

    invoke-static {v1}, Lcom/waiqin365/lightwork/tracker/model/ac;->b(Lcom/waiqin365/lightwork/tracker/model/ac;)Ljava/util/ArrayList;

    move-result-object v1

    invoke-interface {p1}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-interface {v0, v1, v2}, Lcom/waiqin365/lightwork/tracker/model/ae;->a(Ljava/util/ArrayList;Ljava/lang/String;)V

    :cond_0
    return-void
.end method
